home *** CD-ROM | disk | FTP | other *** search
- property pCharCode, pSpr, pMouthList
-
- on beginSprite me
- global gTestFlashIndex, gImplementedCharacters, gMouthList
- if voidp(gMouthList) then
- InitCharacterMouths()
- end if
- pSpr = sprite(me.spriteNum)
- if voidp(gTestFlashIndex) then
- gTestFlashIndex = 1
- end if
- if gTestFlashIndex > count(gImplementedCharacters) then
- put "Test complete"
- halt()
- else
- pCharCode = getPropAt(gImplementedCharacters, gTestFlashIndex)
- pSpr.member = member(pCharCode & "_mouth")
- updateStage()
- put "Testing mouth tags codes for" && pCharCode
- pMouthList = gMouthList[pCharCode]
- end if
- end
-
- on exitFrame me
- if findLabel(pSpr, "nc1") = EMPTY then
- debugAlert("Can't find default mouth position nc1 for" && pSpr.member.name)
- end if
- repeat with thisEntry in pMouthList
- repeat with X = 1 to count(thisEntry)
- tag = getPropAt(thisEntry, X)
- label = string(tag)
- thisLabel = findLabel(pSpr, label)
- if thisLabel then
- next repeat
- end if
- debugAlert("Can't find mouth position" && label && "for" && pSpr.member.name)
- end repeat
- end repeat
- put "done testing tags for" && pCharCode
- go("test done")
- end
-